import request from '@/utils/request'

// 查询战例数据列表
export function listExamplewar(query) {
  return request({
    url: '/business/examplewar/list',
    method: 'get',
    params: query
  })
}

// 查询战例数据详细
export function getExamplewar(id) {
  return request({
    url: '/business/examplewar/' + id,
    method: 'get'
  })
}

// 新增战例数据
export function addExamplewar(data) {
  return request({
    url: '/business/examplewar',
    method: 'post',
    data: data
  })
}

// 修改战例数据
export function updateExamplewar(data) {
  return request({
    url: '/business/examplewar',
    method: 'put',
    data: data
  })
}

// 删除战例数据
export function delExamplewar(id) {
  return request({
    url: '/business/examplewar/' + id,
    method: 'delete'
  })
}
